package com.agent.rag.mapper;

import com.agent.rag.dataobject.RagPictureDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Service;

/**
 * RagPictureMapper层
 */
@Mapper
public interface RagPictureMapper {
    /**
     * 插入数据
     * @param ragPictureDO
     * @return
     */
    @Select("insert into picture(picture_id,picture_url) values(#{pictureId},#{pictureUrl})")
    public void insert(RagPictureDO ragPictureDO);

    @Select("select picture_url from picture where picture_id = #{id}")
    public String getPictureUrl(String id);
}
